package xyz.jangle.net;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class M {

	public static void main(String[] args) {
		try {
			InetAddress address = InetAddress.getByName("www.baidu.com");
			System.out.println(address.toString());
			InetAddress address2 = InetAddress.getByName("180.101.50.242");
			System.out.println(address2.toString());
		} catch (UnknownHostException e) {
			e.printStackTrace();
		}

	}

}
